package com.aididi.jichu;

/**
 * @Auther: zx.xu
 * @Description:
 */
public class HeapAndStackDemo {
        private int day;
        private int month;
        private int year;
        public HeapAndStackDemo(int d, int m, int y) {
            day = d;
            month = m;
            year = y;
        }

        public int getDay() {
            return day;
        }

        public void setDay(int day) {
            this.day = day;
        }

        public int getMonth() {
            return month;
        }

        public void setMonth(int month) {
            this.month = month;
        }

        public int getYear() {
            return year;
        }

        public void setYear(int year) {
            this.year = year;
        }

    @Override
    public String toString() {
        return "HeapAndStackDemo{" +
                "day=" + day +
                ", month=" + month +
                ", year=" + year +
                '}';
    }
}

class Test {
    public static void main(String args[]) {
        int date = 9;
        String a  = "123";
        int hash = a.hashCode();

        int h = 1;
        String aa = "java.lang.InternalError";
        char value[] = aa.toCharArray();
        char val[] = value;
        for (int i = 0; i < value.length; i++) {
            h = 31 * h + val[i];
            long ss = val[i];
        }

        Test test = new Test();
        test.change(date);
        HeapAndStackDemo d1 = new HeapAndStackDemo(7, 7, 1970);
        System.out.println(d1);
    }

    public  void change(int i) {
        i = 1234;
    }
}
